/**
 * @see [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/api/accelerometer.html#wxonaccelerometerchangecallback)
 */

export default function on_accelerometer() {
	return new Promise<wx.AccelerometerData>((resolve) => {
		wx.onAccelerometerChange((res) => {
			resolve(res);
		});
	});
}
